package top.xiaozhaobk.xiaofenshu.user.biz.rpc;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;
import top.xiaozhaobk.xiaofenshu.distributed.id.generator.api.DistributedIdGeneratorFeignApi;

@Component
public class DistributedIdGeneratorRpcService {
    @Resource
    private DistributedIdGeneratorFeignApi distributedIdGeneratorFeignApi;

    private static final String BIZ_TAG_XIAOFENSHU_ID = "leaf-segment-xiaofenshu-id";

    public String getXiaofenshuId(){
        return distributedIdGeneratorFeignApi.getSementId(BIZ_TAG_XIAOFENSHU_ID);
    }
}
